// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PUR_PO
// * CreateDate    : 2014-06-05 18:30:25
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:25
// * LastChanger   : 2014-06-05 18:30:25
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class PurPoTable : TableInfo
    {
		public const string C_TableName = "PUR_PO";
		
		public const string C_ID = "ID";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_UPDATED_DATE = "UPDATED_DATE";
		public const string C_UPDATED_BY = "UPDATED_BY";
		public const string C_IS_ACTIVE = "IS_ACTIVE";
		public const string C_COMPANY_ID = "COMPANY_ID";
		public const string C_SOB_ID = "SOB_ID";
		public const string C_PO_NO = "PO_NO";
		public const string C_PURCHASE_TYPE = "PURCHASE_TYPE";
		public const string C_SUPPLIER_ID = "SUPPLIER_ID";
		public const string C_SUPPLIER_NAME = "SUPPLIER_NAME";
		public const string C_SUPPLIER_CODE = "SUPPLIER_CODE";
		public const string C_SUPPLIER_CONTACT = "SUPPLIER_CONTACT";
		public const string C_SUPPLIER_TEL = "SUPPLIER_TEL";
		public const string C_SUPPLIER_EMAIL = "SUPPLIER_EMAIL";
		public const string C_QU_NO = "QU_NO";
		public const string C_DELIVERY_ADD = "DELIVERY_ADD";
		public const string C_CURRENCY = "CURRENCY";
		public const string C_TRANSPORT_FEE = "TRANSPORT_FEE";
		public const string C_PAYMENT_TYPE = "PAYMENT_TYPE";
		public const string C_PREPAYMENT = "PREPAYMENT";
		public const string C_TOTAL_AMOUNT = "TOTAL_AMOUNT";
		public const string C_IS_TAX = "IS_TAX";
		public const string C_REMARK = "REMARK";
		public const string C_STATUS = "STATUS";
		
		public PurPoTable()
        {
            _tableName = "PUR_PO";
        }
		
		protected static PurPoTable _current;
        public static PurPoTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new PurPoTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_UPDATED_DATE, new ColumnInfo(C_UPDATED_DATE,"UpdatedDate", false, typeof(DateTime)));
            _current.Add(C_UPDATED_BY, new ColumnInfo(C_UPDATED_BY,"UpdatedBy", false, typeof(string)));
            _current.Add(C_IS_ACTIVE, new ColumnInfo(C_IS_ACTIVE,"IsActive", false, typeof(int)));
            _current.Add(C_COMPANY_ID, new ColumnInfo(C_COMPANY_ID,"CompanyId", false, typeof(string)));
            _current.Add(C_SOB_ID, new ColumnInfo(C_SOB_ID,"SobId", false, typeof(string)));
            _current.Add(C_PO_NO, new ColumnInfo(C_PO_NO,"PoNo", false, typeof(string)));
            _current.Add(C_PURCHASE_TYPE, new ColumnInfo(C_PURCHASE_TYPE,"PurchaseType", false, typeof(string)));
            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID,"SupplierId", false, typeof(string)));
            _current.Add(C_SUPPLIER_NAME, new ColumnInfo(C_SUPPLIER_NAME,"SupplierName", false, typeof(string)));
            _current.Add(C_SUPPLIER_CODE, new ColumnInfo(C_SUPPLIER_CODE,"SupplierCode", false, typeof(string)));
            _current.Add(C_SUPPLIER_CONTACT, new ColumnInfo(C_SUPPLIER_CONTACT,"SupplierContact", false, typeof(string)));
            _current.Add(C_SUPPLIER_TEL, new ColumnInfo(C_SUPPLIER_TEL,"SupplierTel", false, typeof(string)));
            _current.Add(C_SUPPLIER_EMAIL, new ColumnInfo(C_SUPPLIER_EMAIL,"SupplierEmail", false, typeof(string)));
            _current.Add(C_QU_NO, new ColumnInfo(C_QU_NO,"QuNo", false, typeof(string)));
            _current.Add(C_DELIVERY_ADD, new ColumnInfo(C_DELIVERY_ADD,"DeliveryAdd", false, typeof(string)));
            _current.Add(C_CURRENCY, new ColumnInfo(C_CURRENCY,"Currency", false, typeof(string)));
            _current.Add(C_TRANSPORT_FEE, new ColumnInfo(C_TRANSPORT_FEE,"TransportFee", false, typeof(decimal)));
            _current.Add(C_PAYMENT_TYPE, new ColumnInfo(C_PAYMENT_TYPE,"PaymentType", false, typeof(string)));
            _current.Add(C_PREPAYMENT, new ColumnInfo(C_PREPAYMENT,"Prepayment", false, typeof(decimal)));
            _current.Add(C_TOTAL_AMOUNT, new ColumnInfo(C_TOTAL_AMOUNT,"TotalAmount", false, typeof(decimal)));
            _current.Add(C_IS_TAX, new ColumnInfo(C_IS_TAX,"IsTax", false, typeof(int)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo UPDATED_DATE
        {
            get { return this[C_UPDATED_DATE]; }
        }
		
		public ColumnInfo UPDATED_BY
        {
            get { return this[C_UPDATED_BY]; }
        }
		
		public ColumnInfo IS_ACTIVE
        {
            get { return this[C_IS_ACTIVE]; }
        }
		
		public ColumnInfo COMPANY_ID
        {
            get { return this[C_COMPANY_ID]; }
        }
		
		public ColumnInfo SOB_ID
        {
            get { return this[C_SOB_ID]; }
        }
		
		public ColumnInfo PO_NO
        {
            get { return this[C_PO_NO]; }
        }
		
		public ColumnInfo PURCHASE_TYPE
        {
            get { return this[C_PURCHASE_TYPE]; }
        }
		
		public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }
		
		public ColumnInfo SUPPLIER_NAME
        {
            get { return this[C_SUPPLIER_NAME]; }
        }
		
		public ColumnInfo SUPPLIER_CODE
        {
            get { return this[C_SUPPLIER_CODE]; }
        }
		
		public ColumnInfo SUPPLIER_CONTACT
        {
            get { return this[C_SUPPLIER_CONTACT]; }
        }
		
		public ColumnInfo SUPPLIER_TEL
        {
            get { return this[C_SUPPLIER_TEL]; }
        }
		
		public ColumnInfo SUPPLIER_EMAIL
        {
            get { return this[C_SUPPLIER_EMAIL]; }
        }
		
		public ColumnInfo QU_NO
        {
            get { return this[C_QU_NO]; }
        }
		
		public ColumnInfo DELIVERY_ADD
        {
            get { return this[C_DELIVERY_ADD]; }
        }
		
		public ColumnInfo CURRENCY
        {
            get { return this[C_CURRENCY]; }
        }
		
		public ColumnInfo TRANSPORT_FEE
        {
            get { return this[C_TRANSPORT_FEE]; }
        }
		
		public ColumnInfo PAYMENT_TYPE
        {
            get { return this[C_PAYMENT_TYPE]; }
        }
		
		public ColumnInfo PREPAYMENT
        {
            get { return this[C_PREPAYMENT]; }
        }
		
		public ColumnInfo TOTAL_AMOUNT
        {
            get { return this[C_TOTAL_AMOUNT]; }
        }
		
		public ColumnInfo IS_TAX
        {
            get { return this[C_IS_TAX]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

